package com.company;

public class L_StaticCode {
    public static int count=0;
    {
        count++;
        System.out.println("非静态代码块 count="+count);
    }
    static
    {
        count++;
        System.out.println("静态代码块 count="+count);
    }
    public static void main(String[] args)
    {
        System.out.println("*************** StaticCode1 执行 ***************");
        L_StaticCode sct1=new L_StaticCode();
        System.out.println("*************** StaticCode2 执行 ***************");
        L_StaticCode sct2=new L_StaticCode();
    }
}
